<?php
/* SVN FILE: $Id: core.php 6305 2008-01-02 02:33:56Z phpnut $ */
/**
 * This is core configuration file.
 *
 * Use it to configure core behaviour of Cola.
 *
 * PHP versions 4 and 5
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package			cola
 * @subpackage		cola.app.config
 * @version			$Revision: 6305 $
 * @modifiedby		$LastChangedBy: phpnut $
 * @lastmodified	$Date: 2008-01-01 20:33:56 -0600 (Tue, 01 Jan 2008) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
/**
 * If you do not have mod rewrite on your system
 * or if you prefer to use ColaPHP pretty urls.
 * uncomment the line below.
 * Note: If you do have mod rewrite but prefer the
 * ColaPHP pretty urls, you also have to remove the
 * .htaccess files
 * release/.htaccess
 * release/app/.htaccess
 * release/app/webroot/.htaccess
 */
//	define ('BASE_URL', env('SCRIPT_NAME'));
/**
 * Set debug level here:
 * - 0: production
 * - 1: development
 * - 2: full debug with sql
 * - 3: full debug with sql and dump of the current object
 *
 * In production, the "flash messages" redirect after a time interval.
 * With the other debug levels you get to click the "flash message" to continue.
 *
 */
define('DEBUG', 1);

/**
 * enable or disable the service authorize
 */
define('SERVICE_AUTHORIZE', false);

/**
 *  enable or disable the service acl
 */
define('SERVICE_ACL', false);

/**
 * 1-memcache, 2-lite(file)
 */
define('CACHE_TYPE', 2);

/**
 * cache key prefix
 */
define('CACHE_PREKEY', 'csis_');

/**
 * define csis system code and password
 */
if (!defined('CSIS_SYSTEM'))
{
    define('CSIS_SYSTEM', 'CSIS');
}
if (!defined('CSIS_PASSWORD'))
{
    define('CSIS_PASSWORD', '');
}

/**
 * set upload/capture img save path for rysync to internet
 */
define('INTERNET_IMG_SAVE_PATH', '/tmp');
/**
 * set img access url prefix for img that rysync to internet
 */
define('INTERNET_IMG_URL_PREFIX', 'http://service.qq.com/images/kf');

/**
 * oa service app key
 */
define('OA_APPKEY', '986ee99c8ea047f3a65d98326d9e593d');

/**
 * Turn of caching checking wide.
 * You must still use the controller var cacheAction inside you controller class.
 * You can either set it controller wide, or in each controller method.
 * use var $cacheAction = true; or in the controller method $this->cacheAction = true;
 */
define('CACHE_CHECK', false);
/**
 * Error constant. Used for differentiating error logging and debugging.
 * Currently PHP supports LOG_DEBUG
 */
define('LOG_ERROR', 2);
/**
 * ColaPHP includes 3 types of session saves
 * database or file. Set this to your preferred method.
 * If you want to use your own save handler place it in
 * app/config/name.php DO NOT USE file or database as the name.
 * and use just the name portion below.
 *
 * Setting this to cola will save files to /coladistro/tmp directory
 * Setting it to php will use the php default save path
 * Setting it to database will use the database
 *
 */
define('COLA_SESSION_SAVE', 'php');
/**
 * If using you own table name for storing sessions
 * set the table name here.
 * DO NOT INCLUDE PREFIX IF YOU HAVE SET ONE IN database.php
 *
 */
define('COLA_SESSION_TABLE', 'cola_sessions');
/**
 * Set a random string of used in session.
 *
 */
define('COLA_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
/**
 * Set the name of session cookie
 *
 */
define('COLA_SESSION_COOKIE', 'COLAPHP');
/**
 * Set level of Cola security.
 *
 */
define('COLA_SECURITY', 'low');
/**
 * Set Cola Session time out.
 * If COLA_SECURITY define is set
 * high: multiplied by 10
 * medium: is multiplied by 100
 * low is: multiplied by 300
 *
 *  Number below is seconds.
 */
define('COLA_SESSION_TIMEOUT', '120');
/**
 * Uncomment the define below to use cola built in admin routes.
 * You can set this value to anything you want.
 * All methods related to the admin route should be prefixed with the
 * name you set COLA_ADMIN to.
 * For example: admin_index, admin_edit
 */
define('COLA_ADMIN', 'admin');
/**
 *  The define below is used to turn cola built webservices
 *  on or off. Default setting is off.
 */
define('WEBSERVICES', 'on');
/**
 * Compress output CSS (removing comments, whitespace, repeating tags etc.)
 * This requires a/var/cache directory to be writable by the web server (caching).
 * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag().
 */
define('COMPRESS_CSS', false);
/**
 * If set to true, helpers would output data instead of returning it.
 */
define('AUTO_OUTPUT', false);
/**
 * If set to false, session would not automatically be started.
 */
define('AUTO_SESSION', false);
/**
 * Set the max size of file to use md5() .
 */
define('MAX_MD5SIZE', (5 * 1024) * 1024);
?>